//
//  NetWorkAssistant.h
//  iOSCodeLearning
//
//  Created by TFAppleWork-Summer on 2018/1/11.
//  Copyright © 2018年 Ace. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Header.h"
@interface NetWorkAssistant : NSObject
SingleH(NetWorkAssistant)

- (void)setRequestHeaderWithDict:(NSDictionary *)dict;

- (void)post:(NSString *)url
  parameters:(NSDictionary *)param
    progress:(void(^)(NSProgress * _Nonnull)) downLoadProgress
     success:(void(^)(id resposeObject))success
     failure:(void(^)(NSError *_Nonnull))failure;

- (void)get:(NSString *)url
  parameters:(NSDictionary *)param
    progress:(void(^)(NSProgress * _Nonnull)) downLoadProgress
     success:(void(^)(id resposeObject))success
     failure:(void(^)(NSError *_Nonnull))failure;

@end
